package demo1;

public class Animal {
    public String name;
    public int age;

    public void sleep() {
        System.out.println(name + "睡觉");
    }

    public void eat() {
        System.out.println(name + "吃饭");
    }
}
